import { createRouter, createWebHistory } from 'vue-router';
import ChatPage from '@/components/chatwindow/ChatPage.vue';
import UserList from '@/components/userlist/UserList.vue';

const router = createRouter({
    // HTML5模式
    history: createWebHistory(),
    routes: [
        {
            path: '/',
            component: UserList,
            name: 'userList',
        },
        {
            path: '/ChatPage',
            component: ChatPage,
            name: 'chatPage',
        },
    ],
});

export default router;
